﻿
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- saved from url=(0014)about:internet -->
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:mssdk="winsdk" xmlns:script="urn:script" xmlns:build="urn:build" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="Description" content="The DbgRpc command line must always contain exactly one of the -l, -e, -t, -c, or -a switches. The options following these switches depend on the switch used. The -s, -p, and -r options can be used with any other options."/>
<meta name="MSHAttr" content="PreferredSiteName:MSDN"/>
<meta name="MSHAttr" content="PreferredLib:/library/windows/hardware"/>
<title>DbgRpc Command-Line Options</title>

<meta name="MS-HAID" content="r12_cmdline_37869b07-780b-4f69-9a4f-69e21cc9759d.xml"/>


<link rel="STYLESHEET" type="text/css" HREF="../common/backsdk4.css"/>





<style>
html,div { margin: 0; padding: 0;}

body {
	padding: 0px;
	margin: 0px;
	overflow: auto;
	height: 100%;
}

#winchm_template_button{
	float: right;
	width: 93px;
	top: 7px;
	position: relative;
	text-align: right;
	right: 5px;
	height: auto;
}

#winchm_template_top{
	padding: 0px;
	margin: 0px;
	border-bottom: 1px solid #9B9B9B;
	background-color: #B1CEFE;
}

#winchm_template_navigation{
	margin: 0px;
	padding-top: 7px;
	padding-left: 7px;
	padding-bottom: 3px;
	padding-right: 0px;
	font-size: 8.5pt;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: normal;
	color: #585858;
}

#winchm_template_title{
	margin: 0px;
	padding-top: 4px;
	padding-left: 7px;
	padding-bottom: 7px;
	padding-right: 0px;
	font-size: 18px; 
	font-family: Verdana, Geneva, sans-serif;
	color: #363636;
}

#winchm_template_content{
	margin-top: 20px;
	margin-left: 15px;
	margin-bottom: 20px;
	margin-right: 15px;
	width: auto  !important;
	width: 100%;
}

#winchm_template_footer{
	border-width: 1px;
	border-color: #B1CEFE;
	border-top-style: solid;
	margin-top: 15px;
	margin-left: 15px;
	margin-bottom: 20px;
	margin-right: 15px;
	padding-top: 7px;
	padding-left: 0px;
	padding-bottom: 0px;
	padding-right: 0px;
	font-family: arial, helvetica, sans-serif;
	font-size: 8.5pt;
	color: #696969;
	width: auto;
	text-align: left;
}


#winchm_template_container{
	margin: 0px;
	padding: 0px;
	position: static;
	padding-bottom: 3px;
	overflow: auto;
	background-color: #FFFFFF;
}


@media print
{
#winchm_template_container{
	position: static;	
	margin: 0px;
	padding: 5px;
	
	width: auto;
	height: auto;
	overflow: auto;
}
#winchm_template_button{
visibility:hidden;
}
}

#winchm_template_navigation A:link	{text-decoration: none; color:#004080}
#winchm_template_navigation A:visited  {text-decoration: none; color: #004080}
#winchm_template_navigation A:active {text-decoration: none; color: #004080 }
#winchm_template_navigation A:hover {text-decoration: none;color: #0080FF}

A:link	{text-decoration: underline; color:#0033CC}
A:visited  {text-decoration: underline; color: #0033CC}
A:active {text-decoration: underline; color: #0033CC }
A:hover {text-decoration: underline;color: #FF0000;}
</style>
<script type="text/javascript">
function isMobile(){
Agent = window.navigator.userAgent;
if (Agent.indexOf("iPhone")>=1 || Agent.indexOf("iPad")>=1 || Agent.indexOf("iPod")>=1 || Agent.indexOf("Android")>=1){
return true;
}else{
return false;	
}

}
function d_onresize(){
if (window.navigator.userAgent.indexOf("MSIE")>=1){
document.getElementById('winchm_template_container').style.pixelWidth = document.body.offsetWidth - 3;
document.getElementById('winchm_template_container').style.pixelHeight = document.body.offsetHeight - document.getElementById('winchm_template_top').offsetHeight - 4;
}
document.getElementById('winchm_template_container').style.top = document.getElementById('winchm_template_top').offsetHeight + 'px';
}

function d_onbeforeprint(){
document.getElementById('winchm_template_container').style.width = 'auto';
document.getElementById('winchm_template_container').style.height = 'auto';
}

function d_onafterprint(){
d_onresize();
}

if(!isMobile()){

window.onload = d_onresize;
window.onresize = d_onresize;
window.onbeforeprint = d_onbeforeprint;
window.onafterprint = d_onafterprint;

document.write("<style>\n");
document.write("body {overflow: hidden;}\n");
document.write("#winchm_template_container {position: absolute;overflow: auto;top : 0px;right: 0px;bottom: 0px;left: 0px;}\n");
document.write("</style>\n");
}

</script>
</head>
<body><script language="JavaScript" type="text/JavaScript">
function syn(){
if(parent.nav.tree){
 if(parent.nav.tree.loaded){
  parent.nav.tree.selectNode(1910);
 }else{
  setTimeout("syn()",500);
}
  }else{
  setTimeout("syn()",500);
  }}
if(parent!=self){
  setTimeout("syn()",100);
}else{
  parent.location.href = "../../index.htm?page=debugger/dbgrpc_command_line_options.htm";
}
originalOnload = window.onload;
if(originalOnload==null){
window.onload = function(){parent.contentLoaded = true;};
}else{
window.onload = function(){originalOnload();parent.contentLoaded = true;};
}
</script> 


<div id="winchm_template_top">
	<div id="winchm_template_button"><A href="kdbgctrl_command_line_options.htm" title="Previous topic"><img id="winchm_template_prev" alt="Previous topic" src="../template2/btn_prev_n.gif" border="0"></a><A href="symstore_command_line_options.htm" title="Next topic"><img id="winchm_template_next" alt="Next topic" src="../template2/btn_next_n.gif" border="0"></a></div>
	<div id="winchm_template_navigation">Help &gt; 
<A href="introduction6.htm">Debugging Tools for Windows (WinDbg, KD, CDB, NTSD)</A> &gt; <A href="debugger_reference.htm">Debugger Reference</A> &gt; <A href="command_line_options.htm">Command-Line Options</A> &gt; </div>
	<div id="winchm_template_title">DbgRpc Command-Line Options</div>
</div>
<div id="winchm_template_container">
	<div id="winchm_template_content"><div id="mainSection"><p>The DbgRpc command line must always contain exactly one of the -l, -e, -t, -c, or -a switches. The options following these switches depend on the switch used. The -s, -p, and -r options can be used with any other options.</p>
<pre class="syntax">
    <b>dbgrpc [-s </b><i>Server</i><b> -p </b><i>ProtSeq</i><b>] [-r </b><i>Radix</i><b>] -l -P </b><i>ProcessID</i><b> -L </b><i>CellID1</i><b>.</b><i>CellID2</i><b> 

dbgrpc [-s </b><i>Server</i><b> -p </b><i>ProtSeq</i><b>] [-r </b><i>Radix</i><b>] -e [-E </b><i>EndpointName</i><b>] 

dbgrpc [-s </b><i>Server</i><b> -p </b><i>ProtSeq</i><b>] [-r </b><i>Radix</i><b>] -t -P </b><i>ProcessID</i><b> [-T </b><i>ThreadID</i><b>] 

dbgrpc [-s </b><i>Server</i><b> -p </b><i>ProtSeq</i><b>] [-r </b><i>Radix</i><b>] [-c|-a] [-C </b><i>CallID</i><b>] [-I </b><i>IfStart</i><b>] [-N </b><i>ProcNum</i><b>] [-P </b><i>ProcessID</i><b>] 

dbgrpc -? 
</b>
   </pre>
<h2><a id="ddk_dbgrpc_command_line_options_dbg"></a><a id="DDK_DBGRPC_COMMAND_LINE_OPTIONS_DBG"></a>Parameters</h2>
<p></p>
<dl>
<dt><a id="_______-s_______Server______"></a><a id="_______-s_______server______"></a><a id="_______-S_______SERVER______"></a>       <b>-s</b>       <i>Server</i>      </dt>
<dd>
<p>Allows DbgRpc to view information from a remote machine. The server name should not be preceded by slash marks. For more information about using DbgRpc remotely, see <a href="#Bookmark1436">Using the DbgRpc Tool</a>.</p>
</dd>
<dt><a id="_______-p_______ProtSeq______"></a><a id="_______-p_______protseq______"></a><a id="_______-P_______PROTSEQ______"></a>       <b>-p</b>       <i>ProtSeq</i>      </dt>
<dd>
<p>Specifies the remote transport to be used. The possible values of <i>ProtSeq</i> are <b>ncacn_ip_tcp</b> (TCP protocol) and <b>ncacn_np</b> (named pipe protocol). TCP protocol is recommended. For more information about using DbgRpc remotely, see <a href="#Bookmark1436">Using the DbgRpc Tool</a>. </p>
</dd>
<dt><a id="_______-r_______Radix______"></a><a id="_______-r_______radix______"></a><a id="_______-R_______RADIX______"></a>       <b>-r</b>       <i>Radix</i>      </dt>
<dd>
<p>Specifies the radix to be used for the command parameters. The default is base 16. If the <b>-r</b> parameter is used, it should be placed first on the line, since it only affects parameters listed after itself. It does not affect the output of the DbgRpc tool.  </p>
</dd>
<dt><a id="_______-l______"></a><a id="_______-L______"></a>       <b>-l</b>      </dt>
<dd>
<p>Displays RPC state information for the specified cell. For an example, see <a href="#Bookmark1437">Get RPC Cell Information</a>.</p>
</dd>
<dt><a id="_______ProcessID______"></a><a id="_______processid______"></a><a id="_______PROCESSID______"></a>       <i>ProcessID</i>      </dt>
<dd>
<p>Specifies the process ID (PID) of a process. When the <b>-l</b> option is being used, this should be the process whose server contains the desired cell. When the <b>-t</b> option is being used, this should be the process containing the desired thread. When the <b>-c</b> or <b>-a</b> options are being used, this parameter is optional; it should be the server process that owns the calls you wish to display.</p>
</dd>
<dt><a id="CellID1.CellID2______"></a><a id="cellid1.cellid2______"></a><a id="CELLID1.CELLID2______"></a><i>CellID1</i>.<i>CellID2</i>      </dt>
<dd>
<p>Specifies the number of the cell to be displayed.</p>
</dd>
<dt><a id="_______-e______"></a><a id="_______-E______"></a>       <b>-e</b>      </dt>
<dd>
<p>Searches the system's RPC state information for endpoint information. For an example, see <a href="#Bookmark1438">Get RPC Endpoint Information</a>.</p>
</dd>
<dt><a id="_______EndpointName______"></a><a id="_______endpointname______"></a><a id="_______ENDPOINTNAME______"></a>       <i>EndpointName</i>      </dt>
<dd>
<p>Specifies the number of the endpoint to be displayed. If omitted, the endpoints for all processes on the system are displayed. </p>
</dd>
<dt><a id="_______-t______"></a><a id="_______-T______"></a>       <b>-t</b>      </dt>
<dd>
<p>Searches the system's RPC state information for thread information. For an example, see <a href="#Bookmark1439">Get RPC Thread Information</a>.</p>
</dd>
<dt><a id="_______ThreadID______"></a><a id="_______threadid______"></a><a id="_______THREADID______"></a>       <i>ThreadID</i>      </dt>
<dd>
<p>Specifies the thread ID of the thread to be displayed. If omitted, all threads in the specified process will be displayed.</p>
</dd>
<dt><a id="_______-c______"></a><a id="_______-C______"></a>       <b>-c</b>      </dt>
<dd>
<p>Searches the system's RPC state information for server-side call (SCALL) information. For an example, see <a href="#Bookmark1440">Get RPC Call Information</a>.</p>
</dd>
<dt><a id="_______-a______"></a><a id="_______-A______"></a>       <b>-a</b>      </dt>
<dd>
<p>Searches the system's RPC state information for client call (CCALL) information. For an example, see <a href="#Bookmark1441">Get RPC Client Call Information</a>. <u>This option requires full RPC state information.</u></p>
</dd>
<dt><a id="_______CallID______"></a><a id="_______callid______"></a><a id="_______CALLID______"></a>       <i>CallID</i>      </dt>
<dd>
<p>Specifies the call ID. This parameter is optional; include it only if you want to display calls matching a specific <i>CallID</i> value.</p>
</dd>
<dt><a id="_______IfStart______"></a><a id="_______ifstart______"></a><a id="_______IFSTART______"></a>       <i>IfStart</i>      </dt>
<dd>
<p>Specifies the first DWORD of the interface's universally unique identifier (UUID) on which the call was made. This parameter is optional; include it only if you want to display calls matching a specific <i>IfStart</i> value.</p>
</dd>
<dt><a id="_______ProcNum______"></a><a id="_______procnum______"></a><a id="_______PROCNUM______"></a>       <i>ProcNum</i>      </dt>
<dd>
<p>Specifies the procedure number of this call. (The RPC Run-Time identifies individual routines from an interface by numbering them by position in the IDL file -- the first routine in the interface is 0, the second 1, and so on.)  This parameter is optional; include it only if you want to display calls matching a specific <i>ProcNum</i> value.</p>
</dd>
</dl>
<h3><a id="Additional_Information"></a><a id="additional_information"></a><a id="ADDITIONAL_INFORMATION"></a>Additional Information</h3>
<p>For more information about debugging Microsoft Remote Procedure Call (RPC), see <a href="#Bookmark1431">RPC Debugging</a>.</p></div></div>	
	<div id="winchm_template_footer">Copyright &copy; 2019. All rights 
reserved. (To change the copyright info, just edit it in template.)</div>
</div>

</body>
</html>
